package com.bdqn.service.impl;

import com.bdqn.dto.UserDto;
import com.bdqn.mapper.UserMapper;
import com.bdqn.pojo.BackendUser;
import com.bdqn.pojo.DevUser;
import com.bdqn.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public DevUser login_dev(UserDto userDto) {
        return userMapper.login_dev(userDto);
    }

    @Override
    public BackendUser login_backend(UserDto userDto) {
        return userMapper.login_backend(userDto);
    }
}
